﻿@model SIGCBI.Entities.PARTIDA

<link rel="stylesheet" href="~/Content/bootstrap.min.css">
<link rel="stylesheet" href="~/Content/themes/base/jquery-ui.css">
<script src="~/Scripts/jquery-1.10.2.js"></script>
<script src="~/Scripts/jquery-ui.js"></script>

@{
    ViewBag.Title = "Partidas Presupuestarias";
}

<button class="btn btn-primary btn-lg btn-block" disabled="disabled">@ViewBag.Title<br />
    Rastreo por Área</button><p></p>

<div class="panel panel-default">
    <div class="panel-heading">Nombre : <b>@Html.DisplayFor(model => model.Nombre)</b></div>
    <div class="panel-body">

        <div class="panel panel-default">
            <div class="panel-heading">Areas Relacionadas</div>
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-striped table-bordered">
                        <tr class="danger"></tr>
                        @foreach (var item in Model.DETALLE_PARTIDA)
                        {
                            <tr style="background: #c4bfbf">
                                <td>@Html.DisplayFor(modelItem => item.FUENTE_FINANCIERA.Descripcion)</td>
                                <td>
                                    @Ajax.ActionLink("Detalles", "ViewDetails", new { idArea = item.IdFuenteFinanciera, idPartida = item.IdPartida}, new AjaxOptions { UpdateTargetId = "divDetails" })
                                </td>
                            </tr>
                        }
                    </table>
                </div>

                <div id="divDetails"></div>

            </div>
        </div>
    </div>
</div>
<p></p>
<p>
    <a href="@Url.Action("Index", "Partida")" class="btn btn-default btn-lg active" role="button">Atras</a>
</p>


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}